﻿package cn.flashk.events
{
    import flash.events.*;
    import flash.net.*;

    public class LoaderManagerEvent extends Event
    {
        private var _fileURL:String;
        private var _typeName:String;
        private var _uldr:URLLoader;
        public static const COMPLETE:String = "complete";

        public function LoaderManagerEvent(type:String, fileURL:String, typeName:String, uldr:URLLoader)
        {
            _fileURL = fileURL;
            _typeName = typeName;
            _uldr = uldr;
            super(type);
            return;
        }// end function

        public function get fileURL() : String
        {
            return _fileURL;
        }// end function

        public function get typeName() : String
        {
            return _typeName;
        }// end function

        public function get data():*
        {
            return _uldr.data;
        }// end function

        public function get URLLoaderInstance() : URLLoader
        {
            return _uldr;
        }// end function

    }
}
